# -------------------- # CodeSkulptor - Python Basics [Challenge 1] # [Challenge Prompt]: Create a mad-lib! Ask the user to enter a number of nouns, verbs, and adjectives, and then build a story out of what they entered. # [Made by]: Kevin J. # -------------------- # Prompt the user for the input of the strings for the mad-lib. money = int(input("Input a large number: ")) age = int(input("Input a number: ")) object = input("Input the name of an object: ") item = input("Input the name of another object: ") city = input("Input the name of a city: ") verb = input("Input a verb: ") action = input("Input another verb: ") animal = input("Input the name of a animal: ") # Verify the number-related variables make logical sense; this means they should not be negative. while money <= 0: print("[ERROR]: A variable is below zero. Please input a number above zero (on Line 8).") print() money = int(input("Input a large number: ")) while age <= 0: print("[ERROR]: A variable is below zero. Please input a number above zero (on Line 9).") print() age = int(input("Input a number: ")) # Concatenate the variables given by the user. print("There once was a teacher, who was", age, "years old who lived in", city, "who spent $", money, "on", object) print("However, he always was", action, "to school since", animal, "constantly would", verb, "on their", item)